package com.yurun.orgclassroommodule.mapper;

import com.yurun.commonapi.api.CommonResult;
import com.yurun.commonapi.pojo.Classroom;
import com.yurun.commonapi.pojo.StudentOption;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;

@Mapper
@Repository
public interface ClassroomMapper {

    List<Classroom> allClassroomInfo(Classroom classroom);

    int addClassroom(Classroom classroom);

    int editClassroom(Classroom classroom);

    int getRoleId(BigInteger employeeId);

    String getResourcesById(int id);

    List<Integer> getResourcesIdByRoleId(int id);

    Integer getStudentCount(BigInteger classroomId);

    String getClassName(Classroom classroom);

    int editClassroomName(Classroom classroom);

    List<StudentOption> getStudentOption(@Param("organizationId") BigInteger organizationId, @Param("branchId")BigInteger branchId);
}
